<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'business-form',
	'enableAjaxValidation'=>false,
)); ?>

    <div id='slider' style="visibility: visible;">
    <ul>
    <li style='display:block'>
	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>


	<div class="row">
		<?php echo $form->labelEx($model,'business_name'); ?>
		<?php echo $form->textField($model,'business_name',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'business_name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'opening_hours'); ?>
		<?php echo $form->textArea($model,'opening_hours',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'opening_hours'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'tel_no'); ?>
		<?php echo $form->textField($model,'tel_no',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'tel_no'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'mobile_no'); ?>
		<?php echo $form->textField($model,'mobile_no',array('size'=>30,'maxlength'=>30)); ?>
		<?php echo $form->error($model,'mobile_no'); ?>
	</div>
    </li>

    <li style='display:none'>

	<div class="row">
		<?php echo $form->labelEx($model,'business_logo'); ?>
		<?php echo $form->textField($model,'business_logo'); ?>
		<?php echo $form->error($model,'business_logo'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'tag_line'); ?>
		<?php echo $form->textField($model,'tag_line',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'tag_line'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'address'); ?>
		<?php echo $form->textField($model,'address',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'address'); ?>
	</div>
    </li>

    <li style='display:none'>
	<div class="row">
		<?php echo $form->labelEx($model,'business_type'); ?>
		<?php echo $form->textField($model,'business_type',array('size'=>30,'maxlength'=>30)); ?>
		<?php echo $form->error($model,'business_type'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'email'); ?>
		<?php echo $form->textField($model,'email',array('size'=>30,'maxlength'=>30)); ?>
		<?php echo $form->error($model,'email'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'business_site_stats'); ?>
		<?php echo $form->textField($model,'business_site_stats',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'business_site_stats'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'online_menu_url'); ?>
		<?php echo $form->textField($model,'online_menu_url',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'online_menu_url'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save', array("data-icon"=>"check")); ?>
	</div>

    </li>
    </ul>
        <nav>
            <a href='#' id='prev' onclick='slider2.prev();return false;'><em> << </em></a>
            <span id='position'><em class='on'>&bull;</em><em>&bull;</em><em>&bull;</em></span>
            <a href='#' id='next' onclick='slider2.next();return false;'><em> >> </em></a>
        </nav>
    </div> <!--end slider -->

<?php $this->endWidget(); ?>

</div><!-- form -->
